#coding:utf-8
import tensorflow as tf
x = tf.constant([[1.0,2.0]])
w = tf.constant([[3.0],[4.0]])
y = tf.matmul(x, w)
print y
with tf.Session() as sess:
    print sess.run(y)
#输出 Tensor("MatMul:0", shape=(1, 1), dtype=float32)
#[[11.]]
#本节重点，理解概念：计算图、会话    